public class AnimalTest1 {
    public static void main(String[] args) {
        System.out.println("-----------正常方法调用-------------");
        Animal animal = new Animal();
        animal.eat();
        System.out.println("----------------------------------");
        Cat cat = new Cat();
        cat.cathRat();
        cat.eat();
        System.out.println("----------------------------------");
        Dog dog = new Dog();
        dog.lookDoor();
        dog.eat();
    }
}
